package com.taikang.hmp.hbusiness.diabetes.measure.download.utils;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

import org.apache.log4j.Logger;

public class ConfigureUtil {

private static Logger log = Logger.getLogger(ConfigureUtil.class);
    
    private ConfigureUtil(){}
    
    private static ConfigureUtil instance = new ConfigureUtil();
    
    public static ConfigureUtil getInstance(){
	
	return instance;
    }
    
    public String getString(String dowlandUrl){
	
	Properties  properties = new Properties();
	try{
	    	    
	    InputStream in= getClass().getClassLoader().getResourceAsStream("/tkfconfig/global/global.app.properties");
	    	    
	    properties.load(in);
	    
	    return properties.getProperty(dowlandUrl);	
  
	}catch(IOException e){
	  log.error(e.getMessage());
	}
	return null;
	
    }
    
}
